import { post, get, dele, put } from "../utils/request";

//新增收货地址
export const addAddressAPI = (data) => post("/api/v1/addresses", data);

//收货地址列表
export const getAddressAPI = (data) => get("/api/v1/addresses", data);

// 获取单条收货地址
export const getOneAddressAPI = (id) => get("/api/v1/addresses/" + id);

// 收货地址删除
export const delAddressAPI = (id) => dele("/api/v1/addresses/" + id);

// 收货地址修改
export const putAddressAPI = (id) => put("/api/v1/addresses/" + id);
